package mybatis.interfaces.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.IFilterQueryCondition;

import java.util.List;
import java.util.Map;


/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class FilterQueryCondition implements IFilterQueryCondition {

    private static final long serialVersionUID = -8851032044656554580L;

    @ApiModelProperty(name = "filter[?]", value = "等于，相同字段or，不同字段and，eg: filter[type]=user&filter[type]=userGroup&filter[name]=name1 表示 (type = 'userGroup' or type = 'user') and name = 'name1' ")
    @JsonIgnore
    private final transient String filterSwaggerView = null;
    protected Map<String, List<String>> filter;

}
